package org.jivesoftware.smack.util.collections;

import java.util.NoSuchElementException;

abstract class AbstractEmptyIterator<E>
{
  public boolean hasNext()
  {
    return false;
  }

  public E next()
  {
    throw new NoSuchElementException("Iterator contains no elements");
  }

  public boolean hasPrevious()
  {
    return false;
  }

  public E previous()
  {
    throw new NoSuchElementException("Iterator contains no elements");
  }

  public int nextIndex()
  {
    return 0;
  }

  public int previousIndex()
  {
    return -1;
  }

  public void add(E paramE)
  {
    throw new UnsupportedOperationException("add() not supported for empty Iterator");
  }

  public void set(E paramE)
  {
    throw new IllegalStateException("Iterator contains no elements");
  }

  public void remove()
  {
    throw new IllegalStateException("Iterator contains no elements");
  }

  public E getKey()
  {
    throw new IllegalStateException("Iterator contains no elements");
  }

  public E getValue()
  {
    throw new IllegalStateException("Iterator contains no elements");
  }

  public E setValue(E paramE)
  {
    throw new IllegalStateException("Iterator contains no elements");
  }

  public void reset()
  {
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     org.jivesoftware.smack.util.collections.AbstractEmptyIterator
 * JD-Core Version:    0.6.1
 */